package com.css.fxfzdpzs.modules.czt.constant;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class DestructiveStateConstant {

    public static final Map<String, String> RELATION_MAP = new HashMap<>();
    public static final Map<String, String> INTENSITY_MAP = new HashMap<>();

    static {
        RELATION_MAP.put("basicallyProportion","基本完好");
        RELATION_MAP.put("minorProportion","轻微破坏");
        RELATION_MAP.put("moderateProportion","中等破坏");
        RELATION_MAP.put("seriousProportion","严重破坏");
        RELATION_MAP.put("collapseProportion","毁坏");
    }

    static {
        INTENSITY_MAP.put("6度","six");
        INTENSITY_MAP.put("7度","seven");
        INTENSITY_MAP.put("8度","eight");
        INTENSITY_MAP.put("9度","nine");
        INTENSITY_MAP.put("10度","ten");
    }

    public static String getConstant(String key) {
        return RELATION_MAP.get(key);
    }

    public static String getConstant1(String key,int type) {
        if(type == 0){
            return INTENSITY_MAP.get(key);
        }else {
            return INTENSITY_MAP.get(key)+"Proportion";
        }

    }

}
